package cn.edu.cqut.test0423;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;


public class Test1 {
	public static void main(String[] args) {
		/*
		 * int -> Integer
		 * float -> Float
		 * double -> Double
		 * char -> Character
		 * boolean -> Boolean
		 * byte -> Byte
		 * short -> Short
		 * long -> Long
		 */
		//自动装箱
		Integer k = 2;
		//自动拆箱
		Integer a = 10;
		int b = a;
		ArrayList<Integer> list = new ArrayList<>();
		list.add(1);
		list.add(2);
		list.add(3);
		list.add(4);
		list.add(5);
		for(int i=0; i<list.size(); i++)
			System.out.print(list.get(i)+"	");
		System.out.println();
		for(int s : list)
			System.out.print(s+"	");
		System.out.println();
		System.out.println(list.toString());
		list.forEach(System.out::print);
		System.out.println();
		list.forEach((str)->{System.out.print(str+"	");});
	}
}
